package cn.rocky.offer;

public class offer17 {

    public int[] printNumbers(int n) {
        int end = (int)Math.pow(10, n) - 1;
        int[] res = new int[end];
        for(int i = 0; i < end; i++)
            res[i] = i + 1;
        return res;
    }

    public static void main(String[] args) {
        offer17 offer17 = new offer17();
        int[] ints = offer17.printNumbers(2);
        for (int i: ints) {
            System.out.println(i);
        }
    }
}
